package com.gift.dao;

import com.gift.pojo.DealTable;
import com.gift.vo.DelAndAccVO;
import com.gift.vo.DelAndBankVO;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

public interface DealTableMapper {
    int deleteByPrimaryKey(Integer did);

    int insert(DealTable record);

    int insertSelective(DealTable record);

    DealTable selectByPrimaryKey(Integer did);

    int updateByPrimaryKeySelective(DealTable record);

    int updateByPrimaryKey(DealTable record);

    List<DealTable> getWorkTime(@Param("workTimeBegin") LocalDateTime workTimeBegin,@Param("workTimeEnd") LocalDateTime workTimeEnd);

    DealTable seekShift(Map<String, Object> map);


    int getCountAll(Map<String, Object> mapO);

    List<DealTable> getAllBypr(Map<String, Object> mapO);

    List<DelAndBankVO> getAllDBByTime(Map<String, Object> mapO);

    List<DealTable> getAllByTime2(Map<String, Object> mapO);

    List<DelAndAccVO> getAllDAByTime(Map<String, Object> mapO);
}